import 'package:flustars_flutter3/flustars_flutter3.dart';

extension SizeExtension on num {

  /// 屏幕宽
  double get w => ScreenUtil.getInstance().getAdapterSize(double.parse("$this"));

  /// 屏幕高
  double get h => ScreenUtil.getInstance().getAdapterSize(double.parse("$this"));

  /// 圆角
  double get r => ScreenUtil.getInstance().getAdapterSize(double.parse("$this"));

  /// 字体大小
  double get sp => ScreenUtil.getInstance().getAdapterSize(double.parse("$this"));

}